using MapGeneration;

namespace CustomItem
{
    public struct SpawnRule
    {
        /// <summary>
        /// 可生成的房间
        /// </summary>
        public RoomName[] SpawnableRooms;

        /// <summary>
        /// 生成数量，会随机分布
        /// </summary>
        public int SpawnCount;

        /// <summary>
        /// 生成数量偏移量，设为0则固定生成数量
        /// </summary>
        public int Offset;

        /// <summary>
        /// 堆叠生成，如果为true，则会成堆生成(数量随机)
        /// </summary>
        public bool StackSpawn;

        /// <summary>
        /// 最大堆叠数量，需要 StackSpawn 设为 true，如果为0则无限制
        /// </summary>
        public int MaxStacks;

        /// <summary>
        /// 可生成的结构
        /// </summary>
        public Structure[] SpawnableStructures;

        /// <summary>
        /// 生成几率
        /// </summary>
        public float SpawnChance;
    }
}